import request from '@/utils/request'
const api = '/api/xdfeizhi'
export function getXdfeizhiPage(params) {
    return request({
        url: `${api}/page`,
        method: 'get',
        params
    })
}

export function getXdfeizhiById(id) {
    return request({
        url: `${api}/${id}`,
        method: 'get'
    })
}

export function saveXdfeizhi(data) {
    return request({
        url: `${api}/saveOrUpdate`,
        method: 'post',
        data
    })
}

export function updateXdfeizhi(id, data) {
    return request({
        url: `${api}/${id}`,
        method: 'put',
        data
    })
}

export function removeXdfeizhi(id) {
    return request({
        url: `${api}/${id}`,
        method: 'delete'
    })
} 